/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.behavioral.visitor.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.DesignPatterns.behavioral.visitor.SumVisitor;
import za.ac.cput.DesignPatterns.behavioral.visitor.ThreeElement;
import za.ac.cput.DesignPatterns.behavioral.visitor.TotalSumVisitor;
import za.ac.cput.DesignPatterns.behavioral.visitor.TwoElement;

/**
 *
 * @author Nashief
 */ 
@Configurable
public class VisitorConf {
int x=100;
int z=200;
int y=300;
            
    
@Bean
public TwoElement twoElement(){
return new TwoElement(6, 8);    
} 
@Bean
public ThreeElement threeElement(){
return new ThreeElement(x, z, y);
}
@Bean
public SumVisitor sumVisitor(){
return new SumVisitor();
} 
@Bean
public TotalSumVisitor totalSumVisitor(){

    return new TotalSumVisitor();

}


}
